<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../common/include.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>分类</title>
</head>
<body>
<table>
	<thead>
		<tr>
			<th>编号</th>
			<th>名称</th>
		</tr>
	</thead>
	<tbody>
		<c:forEach items="${list}" var="cate">
			<tr id="<c:out value="${cate.id}"/>">
				<td><c:out value="${cate.code}" /></td>
				<td><c:out value="${cate.name}" /></td>
			</tr>
		</c:forEach>
	</tbody>
</table>
<button onclick="window.location.href('category/add')" value="添加">添加</button>
</body>
</html>